﻿using Iworld.Administrator.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Iworld.Administrator.Service.Export
{
    [DataContract]
    public class AdministratorLandingRecordExport
    {
        /// <summary>
        /// 用户
        /// </summary>
        [DataMember]
        public AdministratorExport Owner { get; set; }

        /// <summary>
        /// 网络地址
        /// </summary>
        [DataMember]
        public string Ip { get; set; }

        /// <summary>
        /// 实际地址
        /// </summary>
        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [DataMember]
        public DateTime CreatedTime { set; get; }

        public AdministratorLandingRecordExport(AdministratorLandingRecord model)
        {
            this.Owner = new AdministratorExport(model.Owner,null);
            this.Ip = model.Ip;
            this.Address = model.Address;
            this.CreatedTime = model.CreatedTime;
        }
    }
}
